<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>自定义按键修饰符</title>
</head>
<body>
<div id="app">
  <input type="text" @keyup.aa="handle">
</div>

<script src="../lib/vue.js"></script>
<script>
  Vue.config.keyCodes.aa = 65

  let vm = new Vue({
    el: '#app',
    methods: {
      handle(e) {
        console.log(e.code)
      }
    }
  })
</script>
</body>
</html>